package com.rongmai.db.model;


import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName BaseParam
 * @Description 基础参数
 *
 * @author sunhaojie 3113751575@qq.com
 * @date 2016年9月3日 下午4:54:42
 */
public class BaseParam implements Serializable {
    
	private static final long serialVersionUID = 1515705014974741647L;
	/**
	 * 请求id
	 */
	private String requestId;
	/**
	 * 时间戳
	 */
	private String timestamp;
	/**
	 * 应用id
	 */
	private String applicationCode;
	/**
	 * 版本号
	 */
	private int version;
	/**
	 * 签名
	 */
	private String sign;
	/**
	 * 授权码
	 */
	private String authCode;
	
	public BaseParam() {
		
	}


	/**
	 * @return the requestId
	 */
	public String getRequestId() {
		return requestId;
	}

	/**
	 * @param requestId the requestId to set
	 */
	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	/**
	 * @return the timestamp
	 */
	public String getTimestamp() {
		return timestamp;
	}

	/**
	 * @param timestamp the timestamp to set
	 */
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	/**
	 * @return the version
	 */
	public int getVersion() {
		return version;
	}

	/**
	 * @param version the version to set
	 */
	public void setVersion(int version) {
		this.version = version;
	}

	/**
	 * @return the sign
	 */
	public String getSign() {
		return sign;
	}

	/**
	 * @param sign the sign to set
	 */
	public void setSign(String sign) {
		this.sign = sign;
	}
	
	/**
	 * @return the authCode
	 */
	public String getAuthCode() {
		return authCode;
	}

	/**
	 * @param authCode
	 *            the authCode to set
	 */
	public void setAuthCode(String authCode) {
		this.authCode = authCode;
	}

	/**
	 * @return the applicationCode
	 */
	public String getApplicationCode() {
		return applicationCode;
	}

	/**
	 * @param applicationCode
	 *            the applicationCode to set
	 */
	public void setApplicationCode(String applicationCode) {
		this.applicationCode = applicationCode;
	}

	public Map<String, Object> getParamMap() {
		Map<String, Object> data = new HashMap<String, Object>();
		data.put("requestId", requestId);
		data.put("timestamp", timestamp);
		data.put("applicationCode", applicationCode);
		data.put("version", version);
		data.put("authCode", authCode);
		return data;
	}
}
